home *** CD-ROM | disk | FTP | other *** search
/ Chip 2005 June / CHIP 2005-06.iso / program / grafik / myriad.exe / Disk1 / data1.cab / Intgclt_-_xref / exports.cpp next >
Encoding:
C/C++ Source or Header  |  2005-05-12  |  1.1 KB  |  42 lines

  1. // exports.cpp: exported functions
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #include "stdafx.h"
  5. #include "xref.h"
  6.  
  7. #ifdef _DEBUG
  8. #undef THIS_FILE
  9. static char THIS_FILE[]=__FILE__;
  10. #define new DEBUG_NEW
  11. #endif
  12.  
  13. extern CXrefApp theApp;
  14.  
  15. //////////////////////////////////////////////////////////////////////
  16. _declspec( dllexport ) BOOL XREF_Init(void)
  17. {
  18. #ifdef _AFXDLL
  19.    AFX_MANAGE_STATE(AfxGetStaticModuleState()); // Call this when using MFC in a shared DLL
  20. #endif
  21.    return theApp.Init();
  22. }
  23.  
  24. _declspec( dllexport ) BOOL XREF_GetXref(LPCSTR LocalFile, 
  25.                                          LPCSTR xref, 
  26.                                          char *Answer, 
  27.                                          int Answersize)
  28. {
  29. #ifdef _AFXDLL
  30.    AFX_MANAGE_STATE(AfxGetStaticModuleState()); // Call this when using MFC in a shared DLL
  31. #endif
  32.    return theApp.GetXref(LocalFile, xref, Answer, Answersize);
  33. }
  34.  
  35. _declspec( dllexport ) void XREF_DeInit(void)
  36. {
  37. #ifdef _AFXDLL
  38.    AFX_MANAGE_STATE(AfxGetStaticModuleState()); // Call this when using MFC in a shared DLL
  39. #endif
  40.    theApp.DeInit();
  41. }
  42.